﻿<T:ViewBase x:Class="ITXMOV.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
   Name="TV"
            xmlns:T="clr-namespace:ITXMOV;assembly=ApplicationBase" 
             FontSize="24"
   Loaded="TV_Loaded"
    d:DesignHeight="300" d:DesignWidth="400">  
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="40"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel  Grid.Row="0" Orientation="Horizontal">
            <Button Content="入网" Margin="30,0,0,0"  FontSize="24" Width="Auto" Click="LogIn" HorizontalAlignment="Left"/>
            <Button Grid.Row="0"  Margin="30,0,0,0"  FontSize="24" Width="Auto"  Content="离线" Click="Quit" HorizontalAlignment="Left"/>
            <TextBlock Grid.Row="1"  Margin="30,0,0,0" Name="txtAgentID" FontSize="24" Width="Auto" MinWidth="60" Foreground="Red" Text="{Binding AGENTID}"  HorizontalAlignment="Left" />
        </StackPanel>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid  Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Grid.Column="0" Margin="30,0,0,0"  Content="生产单" Click="Check" HorizontalAlignment="Left"/>
                <TextBox Grid.Column="1" Width="200" Text="{Binding ABPAUF,ElementName=TV}" KeyUp="ABPAUF_KeyUp" HorizontalAlignment="Left"/>
            </Grid>
            <Grid  Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Grid.Column="0" Margin="30,0,0,0"  Content="机台号" Click="Check" HorizontalAlignment="Left"/>
                <TextBox Grid.Column="1" Width="200" Text="{Binding MACHINEID,ElementName=TV}" KeyUp="MACHINEIDF_KeyUp" HorizontalAlignment="Left"/>
            </Grid>
            <Grid  Grid.Row="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Grid.Column="0" Margin="30,0,0,0"  Content="员工" Click="Check" HorizontalAlignment="Left"/>
                <TextBox Grid.Column="1" Width="200" Text="{Binding STAFF,ElementName=TV}" KeyUp="STAFF_KeyUp" HorizontalAlignment="Left"/>
            </Grid>
            <Grid  Grid.Row="3">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Button Grid.Column="0" Margin="30,0,0,0"  Content="备注" Click="Check" HorizontalAlignment="Left"/>
                <TextBox Grid.Column="1" Width="200" Text="{Binding REMARK,ElementName=TV}" KeyUp="REMARK_KeyUp" HorizontalAlignment="Left"/>
            </Grid>
        </Grid>
        <StackPanel  Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Top">
            <TextBlock Grid.Row="12" Name="txtMsg" Text="{Binding MSG,ElementName=TV}"  HorizontalAlignment="Left"/>
        </StackPanel>
    </Grid>
</T:ViewBase>
